//
//  ArchiveCoderRomoteDevice.m
//  wAudioShare
//
//  Created by Anson on 15/1/10.
//  Copyright (c) 2015年 赵帅. All rights reserved.
//

#import "ArchiveCoderRomoteDevice.h"

@implementation ArchiveCoderRomoteDevice

-(void)encodeWithCoder:(NSCoder *)aCoder
{
    [aCoder encodeObject:_uuid forKey:@"uuid"];
    [aCoder encodeObject:_name forKey:@"name"];
    [aCoder encodeObject:_bindTime forKey:@"bindTime"];
    
    [aCoder encodeInteger:_status forKey:@"status"];
}


-(id)initWithCoder:(NSCoder *)aDecoder
{
    if(self=[super init])
    {
        _uuid = [aDecoder decodeObjectForKey:@"uuid"];
        _name = [aDecoder decodeObjectForKey:@"name"];
        _bindTime = [aDecoder decodeObjectForKey:@"bindTime"];
        _status = [aDecoder decodeIntForKey:@"status"];
        
    }
    return  self;
}

@end
